package com.bigchui.DesignPattern.Singleton.lazy;

/**懒汉式单例
 * Created by wangzhen on 2019/3/9.
 */
public class LazySingleton {
    private static LazySingleton lazySingleton = null;
    private LazySingleton(){

    }
    public static LazySingleton getInstance(){
        if(lazySingleton == null){
            lazySingleton =new LazySingleton();
        }
        return lazySingleton;
    }
}
